function varargout = get_fname(varargin)
% $Id: get_fname.m 320 2005-05-05 20:07:09Z odellj $
% GET_FNAME Application M-file for get_fname.fig
%    FIG = GET_FNAME launch get_fname GUI.
%    GET_FNAME('callback_name', ...) invoke the named callback.

% Last Modified by GUIDE v2.0 21-Mar-2003 17:10:04
% $Log: get_fname.m,v $
% Revision 1.1.1.1  2004/02/18 20:09:49  odellj
% initial import into CVS
%
% Revision 1.2  2004/02/05 20:22:52  odellj
% Added Id and Log tags.
%

% if nargin == 0  % LAUNCH GUI
global hdr
% 	fig = openfig(mfilename,'reuse');
[fname,pname] = uigetfile('*.hdr','Select the header file');
fname
load(fname,'-mat')
	% Use system color scheme for figure:
% 	set(fig,'Color',get(0,'defaultUicontrolBackgroundColor'));

% 	% Generate a structure of handles to pass to callbacks, and store it. 
% 	handles = guihandles(fig);
% 	guidata(fig, handles);
% 
% 	if nargout > 0
% 		varargout{1} = fig;
% 	end
% 
% elseif ischar(varargin{1}) % INVOKE NAMED SUBFUNCTION OR CALLBACK
% 
% 	try
% 		if (nargout)
% 			[varargout{1:nargout}] = feval(varargin{:}); % FEVAL switchyard
% 		else
% 			feval(varargin{:}); % FEVAL switchyard
% 		end
% 	catch
% 		disp(lasterr);
% 	end
% 
% end
% 
% % --------------------------------------------------------------------
% function varargout = fname_Callback(h, eventdata, handles, varargin)
% 
% global hdr
% 
% % Value=get(h,'String')
% % set(handles.fname,'String',Value)
% hdr.fname=Value;
% guidata(h,handles);
% save([hdr.data_path hdr.exp_name '\' hdr.fname]','hdr','-mat')
% 
% % --------------------------------------------------------------------
% function varargout = done_Callback(h, eventdata, handles, varargin)
% 
% close
% 
